package com.song.demo.webmvc.servlet;

import lombok.Data;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * 主要保存Url和Method的对应关系
 *
 */
@Data
public class GPHandlerMapping {

    private Pattern pattern;
    private Object controller;
    private Method method;

    public GPHandlerMapping(Pattern pattern, Object controller, Method method) {
        this.pattern = pattern;
        this.controller = controller;
        this.method = method;
    }
}
